﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Resto.CostControl.Core.Models;

namespace Resto.CostControl.Core
{
    /// <summary>
    /// 订单明细
    /// </summary>
    public class DishOrderItem : BaseModel
    {
        public string Id { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 菜肴ID
        /// </summary>
        public string DishId { get; set; }

        /// <summary>
        /// 项目点
        /// </summary>
        [Display(Name = "项目点")]
        public string SiteId { get; set; }

        [Display(Name = "编号")]
        public string Code { get; set; }

        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "类别")]
        public string Category { get; set; }

        [Display(Name = "成本价格")]
        public decimal DishCost { get; set; }

        [Display(Name = "成本总价")]
        public decimal TotalCost { get; set; }

        [Display(Name = "销售价格")]
        public decimal DishPrice { get; set; }

        [Display(Name = "销售总价")]
        public decimal TotalPrice { get; set; }

        [Display(Name = "客数")]
        public int Count { get; set; }

        [Display(Name = "日期")]
        public DateTime Date { get; set; }

        /// <summary>
        /// 档口（面类、套餐、自选、小炒、商务）
        /// </summary>
        [Display(Name = "档口")]
        public string Stall { get; set; }

        /// <summary>
        /// 餐类（早餐、中餐、晚餐）
        /// </summary>
        [Display(Name = "餐类")]
        public string MealType { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        /// <summary>
        /// 状态（暂存、上报）
        /// </summary>
        [Display(Name = "状态")]
        public string State { get; set; }

        /// <summary>
        /// 周数
        /// </summary>
        public int? Week { get; set; }

    }
}
